<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>Insert title here</title>
	<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
</head>

<body>
	<h1>Welcome</h1>
	<button style="width: 300px; height: 300px; font-size: 50px" class="btn" onclick="btn()">开始点餐</button>
</body>
<script>
	function btn() {
		wx.miniProgram.switchTab({ url: "/pages/test/test" })
	}

</script>

</html>